function Viewport() {}
Viewport.prototype = new Entity;

Viewport.prototype.context;
Viewport.prototype.canvas;
Viewport.prototype.ID;


Viewport.prototype.init = function()
{
  this.setID("default");
  this.setDimensions(768, 512);
}


Viewport.prototype.setID = function(id)
{
  this.canvas = document.getElementById(id);
  this.context = this.canvas.getContext("2d");
}


Viewport.prototype.setDimensions = function(width, height)
{
  this.canvas.width = width;
  this.canvas.height = height;
}

Viewport.prototype.update = function()
{
}


Viewport.prototype.render = function()
{
    //this.context.clearRect(0, 0, this.canvas.width, this.canvas.height);
}